package edu.sctu.wangfuxin.day20150607.calculagraph;

import java.util.Scanner;

/**
 * Created by user06 on 2015/6/7.
 */
public class ThreadRunnable implements Runnable {
    public String string;
    Scanner scanner = new Scanner(System.in);
    @Override
    public void run() {
        if(string != "s"){
            for (int i = 0; i < 100; i++) {
                System.out.println("已过"+i+"秒");
                try {
                    java.lang.Thread.sleep(1000);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
        }
    }
}

